FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf
RUN rm -rf /etc/nginx/conf.d/*
COPY services/* /etc/nginx/conf.d/
EXPOSE 80
RUN mkdir -p /data/www/api
COPY index/* /data/www/api/


# Install Supervisord
RUN apt-get update && apt-get install -y supervisor && apt-get install -y wget curl \
&& rm -rf /var/lib/apt/lists/*
# Custom Supervisord config
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord"]